package com.runtime.hongyunmanage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.runtime.hongyunmanage.bean.*;

import java.util.List;
import java.util.Map;

public interface ProductService extends IService<Products> {

    List<Products> findProcutsByCondition(int pageSize, int offset, Products products);

    void updateProduct(Long productId, ProductRequest request);
    Map<String, Object> findProductsByCondition(int pageSize, int offset, Products products);
    int CountProducts(Products products);
//    List<Products> findProductsWithDetailsAndImages();
    void publishProduct(Integer productId);
    void unpublishProduct(Integer productId);
    void editProductBasicInfo(Products product);
    void editProductDetailInfo( Productdetails details, List<ProductImage> images);
    void checkStockAlert();
    Products findProductById(Integer productId);
    Products findProductByNumber(String productNumber);
    List<Products> findProductsByName(String productName);
    List<Products> findProductsByCategory(Integer categoryId);
    void addProduct(Products product, Productdetails details, List<ProductImage> images);
    void deleteProduct(Integer productId);
}